package com.wgl.cmn.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wgl.model.dict.Dict;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author wgl
 * @version 1.0.0
 * @ClassName DictService.java
 * @Description TODO
 * @createTime 2022年02月04日 22:25:00
 */
public interface DictService extends IService<Dict> {
    /**
    * @Author: Wgl
    * @Description: 更具id查询其子数据列表
    * @Date: 2022/2/4 22:39;
    * @param id: ;
    * @return: java.util.List<com.wgl.model.dict.Dict>;
    */
    List<Dict> findChildData(Long id);
    /**
    * @Author: Wgl
    * @Description: 导出数据字典
    * @Date: 2022/2/5 10:58;
    * @param httpServletResponse: ;
    * @return: void;
    */
    void exportData(HttpServletResponse httpServletResponse);

    /**
    * @Author: Wgl
    * @Description: 导入数据字典
    * @Date: 2022/2/5 11:17;
    * @param multipartFile: ;
    * @return: void;
    */
    void importData(MultipartFile multipartFile);

    /**
    * @Author: Wgl
    * @Description: 根据dictCode和value获得Name
    * @Date: 2022/2/6 21:34;
    * @param dictCode:
     * @param value: ;
    * @return: java.lang.String;
    */
    String getDictCodeName(String dictCode, String value);
    /**
    * @Author: Wgl
    * @Description: 根据DictCode 查询出所有的字节点
    * @Date: 2022/2/6 22:57;
    * @param null: ;
    * @return: null;
    */
    List<Dict> getdDictByDictCode(String dictCode);

}
